package com.dustedpixels.jasmin.chips.z80.util;

import com.dustedpixels.jasmin.chips.z80.implbase.Z80ContextImplBase;

/**
 * Stub Z80Context. Writing to memory and bus does nothing. Reading from memory
 * and bus always gets 0xFF. No lines are active.
 */
public class StubZ80Context extends Z80ContextImplBase {
    public byte in(short port) {
        return (byte) 0xFF;
    }

    public boolean isIRQActive() {
        return false;
    }

    public boolean isNMIActive() {
        return false;
    }

    public boolean isResetActive() {
        return false;
    }

    public void out(short port, byte value) {
        // NO-OP
    }

    public byte peek(short address) {
        return (byte) 0xFF;
    }

    public void poke(short address, byte value) {
        // NO-OP
    }

    public boolean noLinesActive() {
        return true;
    }
}
